<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.div0,p{
				
				border: 1px solid red;
			}
			.div1,.div2,.div3{
				width: 100px;
				height: 100px;
				margin:3px;
				float: right;
				
			}
			.div1{
				/*脱离默认的流定位向右浮动*/
				background-color: red;
			}
			.div2{
				background-color: green;
			}
			.div3{
				background-color: blue;
			}
			.div4{
				/* 间接的吧父元素撑起来 */
				clear: left;
				height: 200px;
				border: 1px solid #0000FF;
			}
			。
			p{
				/* 消除了浮动对div0和p的影响 */
				clear: right;
			}
			
		</style>
	</head>
	<body>
		<div class="div0">
			<div class="div1"></div>
			<div class="div2"></div>
			<div class="div3"></div>
			<div class="div4"></div>
		</div>
		<p>浮动是看位置</p>
	</body>
</html>
